home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / WINCONS.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  1.4 KB  |  71 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // FusionWindow
  8. //
  9.  
  10. #include "fliwin.h"
  11.  
  12. #ifdef __BCPLUSPLUS__
  13. #pragma hdrstop
  14. #endif
  15.  
  16. #include <alloc.h>
  17. #include <string.h>
  18.  
  19. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  20. //
  21. // FusionWindow()
  22. //
  23. // Constructor for FusionWindow class
  24. //
  25. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  26.  
  27. FusionWindow::FusionWindow()
  28. {
  29.   NumberOfWindows=0;
  30.   LastShift=500;
  31.   KeyLast=500;
  32.   Windows=0;
  33.   DefaultHelp=0;
  34.   MaxWindows=0;
  35.   VirtualizeInterval=18;
  36.   FlushMouseQueue();
  37. }
  38.  
  39. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  40. //
  41. // ~FusionWindow()
  42. //
  43. // Destructor for FusionWindow class
  44. //
  45. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  46.  
  47. FusionWindow::~FusionWindow()
  48. {
  49.   if (Windows)
  50.   {
  51.     for (register int i=0;i<NumberOfWindows-1;i++)
  52.       delete Windows[i];
  53.     free(Windows);
  54.   }
  55.   FlushMouseQueue();
  56. }
  57.  
  58. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  59. //
  60. // TopWindow()
  61. //
  62. // Returns pointer to top window
  63. //
  64. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  65.  
  66. WindowElement *FusionWindow::TopWindow()
  67. {
  68.   return (!NumberOfWindows)?0:Windows[0];
  69. }
  70.  
  71.